package com.huangwenshuo.futurestarschoolmanagement.mapper;

import com.huangwenshuo.futurestarschoolmanagement.pojo.po.RolesPo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.RolesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangwenshuo
 * @since 2020-12-26
 */
@Mapper
public interface RolesMapper extends BaseMapper<RolesPo> {

    void addUserRole(@Param("uid") Integer uid,@Param("rid") Integer rid);

    List<RolesVo> getRoles(@Param("page")int page, @Param("rows") int rows);

    RolesVo getRolesInfo(Integer rid,int page,int rows);
}
